package cn.xing.managementSystem.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.*;

/**
 * @author cuixing
 * @package cn.xing.managementSystem.domain
 * @class student
 * @email xing.cui@magicwindow.cn
 * @date 2018/4/25 下午1:31
 * @description
 */

@Data
@Table(name="student")
@Entity
public class Student extends BaseEntity{

    @JSONField(name = "introduction")
    @JsonProperty("introduction")
    @Column(name="introduction")
    private String introduction;

    @JSONField(name = "image_store")
    @JsonProperty("image_store")
    @OneToOne
    @JoinColumn(name="image_store_id")
    private ImageStore imageStore;
}